package com.example.kt_user.di

import com.example.kt_common.network.RetrofitManager
import com.example.kt_user.api.UserApi
import com.example.kt_user.repo.LoginRepo
import com.example.kt_user.viewmodel.LoginViewModel
import org.koin.androidx.viewmodel.dsl.viewModel
import org.koin.dsl.module

/**
 * Created by 小陈 on 2025/3/23.
 * Time: 16:50.
 */
val userModule = module {
    single { RetrofitManager.getService(UserApi::class.java) }
    single { LoginRepo(get()) }
    viewModel { LoginViewModel(get()) }
}